package com.lifeng.finance.demo.mapper;

import com.lifeng.finance.demo.entity.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ItemMapper {
    List<Item> findAll();
    Item findOneById(@Param("id") int id);
    List<Item> findSomeByProjectId(@Param("project_id") int projectId);
    void add(Item item);
    void update(Item item);
    void delete(int id);

}
